﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Reflection;

public partial class About : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Assembly assembly = System.Reflection.Assembly.LoadFile(Server.MapPath(@"~\bin\Wz16.Baoming.BLL.dll"));

            this.lblBllVersionNumber.Text =
                assembly.GetName().Version.ToString();
            this.lblBllVersionNumber.Text += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;最后编译时间" + System.IO.File.GetLastWriteTime(assembly.Location);
            
            this.lblWebSiteVersionNumber.Text = ((System.Reflection.Assembly)Application["Assembly"]).GetName().Version.ToString();
            this.lblWebSiteVersionNumber.Text += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;最后编译时间" + System.IO.File.GetLastWriteTime(((System.Reflection.Assembly)Application["Assembly"]).Location);
        }
    }
}